public class work02 {
//2、在main方法中，定义另个整形变量，赋值为3和4，然后交换两个变量的值

    public static void main(String[] args) {
        int x = 3;
        int y = 4;
        int txy = x;
        x = y;
        y = txy;

        System.out.println("交换后的x："+x);
        System.out.println("交换后的y："+y);
    }
}
